<table width="700" border="0" cellspacing="0" cellpadding="0" class="metallic_grid_top_table" >
  <tr>
    <td>
      <div class="metallic_grid_title">Admin users list</div>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="metallic_paginator">
        <tr>
          <td width="34%"> {if $admin_users_total_pages > 1}
            <table border="0" cellspacing="0" cellpadding="2" class="metallic_pg_page_of_table">
              <tr>
                <td valign="middle">{if $admin_users_first_page}<a href="{$admin_users_first_page}" onclick="submit_ajax_grid_admin_users({$admin_users_first_page_num}); return false;"><img src="img/modules/grid_html_tpl_static_ajax_metallic/page_first_blue.png" alt="First page" border="0" /></a>{else}<img src="img/modules/grid_html_tpl_static_ajax_metallic/page_first.png" alt="First page" border="0" />{/if}</td>
                <td valign="middle">{if $admin_users_prev_page}<a href="{$admin_users_prev_page}" onclick="submit_ajax_grid_admin_users({$admin_users_prev_page_num}); return false;"><img src="img/modules/grid_html_tpl_static_ajax_metallic/page_prev_blue.png" alt="Previous page" border="0" /></a>{else}<img src="img/modules/grid_html_tpl_static_ajax_metallic/page_prev.png" alt="Previous page" border="0" />{/if}</td>
                <td class="metallic_pg_page_of" valign="middle">{if $admin_users_total_pages}Page {$admin_users_current_page} of {$admin_users_total_pages}{/if}</td>
                <td valign="middle">{if $admin_users_next_page}<a href="{$admin_users_next_page}" onclick="submit_ajax_grid_admin_users({$admin_users_next_page_num}); return false;"><img src="img/modules/grid_html_tpl_static_ajax_metallic/page_next_blue.png" alt="Next page" border="0" /></a>{else}<img src="img/modules/grid_html_tpl_static_ajax_metallic/page_next.png" alt="Next page" border="0" />{/if}</td>
                <td valign="middle">{if $admin_users_last_page}<a href="{$admin_users_last_page}" onclick="submit_ajax_grid_admin_users({$admin_users_last_page_num}); return false;"><img src="img/modules/grid_html_tpl_static_ajax_metallic/page_last_blue.png" alt="Last page" border="0" /></a>{else}<img src="img/modules/grid_html_tpl_static_ajax_metallic/page_last.png" alt="Last page" border="0" />{/if}</td>
              </tr>
            </table>
            {/if} </td>
          <td class="metallic_pg_jump_to_page" width="33%" align="center">{if $admin_users_records_to} Records {$admin_users_records_from}-{$admin_users_records_to} of {$admin_users_records_total}{/if}</td>
          <td class="metallic_pg_records" width="33%" align="right"> {if $admin_users_total_pages > 1}
            <table border="0" cellspacing="2" cellpadding="0">
              <tr>
                <td>Jump to page</td>
                <td>
                  <form class="metallic_pg_page_select" action="{$admin_users_jump_to_page_action}" method="get" enctype="application/x-www-form-urlencoded">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>
                          <select name="admin_users_page" id="admin_users_field_page" onChange="admin_users_page_change(this.options[this.selectedIndex].value); return false;">
                            
															{foreach from=$admin_users_jump_to_page_arr item=admin_users_page_num}
															
                            <option value="{$admin_users_page_num}"{if $admin_users_page_num == $admin_users_current_page} selected="selected"{/if}>{$admin_users_page_num}</option>
                            
															{/foreach}
														
                          </select>
                        </td>
                        <td>
                          <noscript>
                          &nbsp;
                          <input name="submit" type="image" src="img/modules/grid_html_tpl_static_ajax_metallic/page_go.png" alt="go" />
                          </noscript>
                        </td>
                      </tr>
                    </table>
                  </form>
                </td>
              </tr>
            </table>
            {else}
            &nbsp;
            {/if} </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%"  border="0" cellspacing="1" cellpadding="2" class="metallic_grid_table">
        <thead>
          <tr>
            <th align="right" class="metallic_grid_header" nowrap="nowrap" width="10%">&nbsp;ID&nbsp;</th>
            <th align="left" class="metallic_grid_header" nowrap="nowrap" width="80%">&nbsp;Username&nbsp;</th>
            <th align="center" class="metallic_grid_header" nowrap="nowrap" width="10%">&nbsp;Disabled?&nbsp;</th>
            <th class="metallic_grid_header">&nbsp;</th>            
            <th class="metallic_grid_header">&nbsp;</th>
            <th class="metallic_grid_header">&nbsp;</th>
            <th class="metallic_grid_header">&nbsp;</th>
          </tr>
        </thead>
        <tbody>
        
        {foreach from=$admin_users_prows item=row}
        <tr class="metallic_grid_body" onmouseover="this.className='metallic_grid_body_over';return true;" onmouseout="this.className='metallic_grid_body';return true;">
          <td align="right">{$row.cols.0}</td>
          <td align="left">{if $row.cols.2 == 0}<strong>{$row.cols.1}</strong>{else}{$row.cols.1}{/if}</td>
          <td align="center">{if $row.cols.2}<span class="status_disabled">Yes</span>{else}<span class="status_enabled">No</span>{/if}</td>
          <td align="center" width="1" class="metallic_grid_link"><a href="admin/admin_user/admin_user_log.php?user={$row.lc_vals.view_log}" {popup text="View log"}><img src="/img/modules/crystal_icons_small/16x16/view.png" alt="View log" width="16" height="16" border="0"/></a></td>          
          <td align="center" width="1" class="metallic_grid_link">{if $row.cols.2}<a href="admin/admin_user/admin_user_enable.php?enable={$row.lc_vals.disable}" {popup text="Enable this user"}><img src="/img/modules/crystal_icons_small/16x16/user_edit.png" alt="Enable" width="16" height="16" border="0"/></a>{else}<a href="admin/admin_user/admin_user_disable.php?disable={$row.lc_vals.disable}" {popup text="Disable this user"}><img src="/img/modules/crystal_icons_small/16x16/user_disable.png" alt="Disable" width="16" height="16" border="0" />{/if}</a></td>
          <td align="center" width="1" class="metallic_grid_link"><a href="admin/admin_user/admin_user_chpwd.php?admin_user_chpwd_obj_id={$row.lc_vals.chpwd}" {popup text="Change password"}><img src="/img/modules/crystal_icons_small/16x16/password.png" alt="Change password" width="16" height="16" border="0"/></a></td>
          <td align="center" width="1" class="metallic_grid_link"><a href="admin/admin_user/admin_user_del.php?del={$row.lc_vals.delete}" {popup text="Delete this user"}><img src="/img/modules/crystal_icons_small/16x16/user_delete.png" alt="Delete" width="16" height="16" border="0"/></a></td>
        </tr>
        {foreachelse}
        <tr class="metallic_grid_body">
          <td colspan="3" align="left">No items</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>          
        </tr>
        {assign var="$admin_users_prows_count"  value=1}
        {/foreach}
				{math equation="$admin_users_page_size - rc" rc=$admin_users_prows_count assign=rc}
				{section name=aa loop=$rc}
				<tr class="metallic_grid_body">
                    <td colspan="3">&nbsp;</td>
										<td>&nbsp;</td>
										<td>&nbsp;</td>
										<td>&nbsp;</td>                                        
										<td>&nbsp;</td>
									</tr>
				{/section}

        </tbody>
        
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="metallic_paginator">
        <tr>
          <td width="34%"> {if $admin_users_total_pages > 1}
            <table border="0" cellspacing="0" cellpadding="2" class="metallic_pg_page_of_table">
              <tr>
                <td valign="middle">{if $admin_users_first_page}<a href="{$admin_users_first_page}" onclick="submit_ajax_grid_admin_users({$admin_users_first_page_num}); return false;"><img src="img/modules/grid_html_tpl_static_ajax_metallic/page_first_blue.png" alt="First page" border="0" /></a>{else}<img src="img/modules/grid_html_tpl_static_ajax_metallic/page_first.png" alt="First page" border="0" />{/if}</td>
                <td valign="middle">{if $admin_users_prev_page}<a href="{$admin_users_prev_page}" onclick="submit_ajax_grid_admin_users({$admin_users_prev_page_num}); return false;"><img src="img/modules/grid_html_tpl_static_ajax_metallic/page_prev_blue.png" alt="Previous page" border="0" /></a>{else}<img src="img/modules/grid_html_tpl_static_ajax_metallic/page_prev.png" alt="Previous page" border="0" />{/if}</td>
                <td class="metallic_pg_page_of" valign="middle">{if $admin_users_total_pages}Page {$admin_users_current_page} of {$admin_users_total_pages}{/if}</td>
                <td valign="middle">{if $admin_users_next_page}<a href="{$admin_users_next_page}" onclick="submit_ajax_grid_admin_users({$admin_users_next_page_num}); return false;"><img src="img/modules/grid_html_tpl_static_ajax_metallic/page_next_blue.png" alt="Next page" border="0" /></a>{else}<img src="img/modules/grid_html_tpl_static_ajax_metallic/page_next.png" alt="Next page" border="0" />{/if}</td>
                <td valign="middle">{if $admin_users_last_page}<a href="{$admin_users_last_page}" onclick="submit_ajax_grid_admin_users({$admin_users_last_page_num}); return false;"><img src="img/modules/grid_html_tpl_static_ajax_metallic/page_last_blue.png" alt="Last page" border="0" /></a>{else}<img src="img/modules/grid_html_tpl_static_ajax_metallic/page_last.png" alt="Last page" border="0" />{/if}</td>
              </tr>
            </table>
            {/if} </td>
          <td class="metallic_pg_jump_to_page" width="33%" align="center">{if $admin_users_records_to} Records {$admin_users_records_from}-{$admin_users_records_to} of {$admin_users_records_total}{/if}</td>
          <td class="metallic_pg_records" width="33%" align="right"> {if $admin_users_total_pages > 1}
            <table border="0" cellspacing="2" cellpadding="0">
              <tr>
                <td>Jump to page</td>
                <td>
                  <form action="{$admin_users_jump_to_page_action}" method="get" enctype="application/x-www-form-urlencoded">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>
                          <select name="admin_users_page" id="admin_users_field_page" onChange="admin_users_page_change(this.options[this.selectedIndex].value); return false;">
                            
															{foreach from=$admin_users_jump_to_page_arr item=admin_users_page_num}
															
                            <option value="{$admin_users_page_num}"{if $admin_users_page_num == $admin_users_current_page} selected="selected"{/if}>{$admin_users_page_num}</option>
                            
															{/foreach}
														
                          </select>
                        </td>
                        <td>
                          <noscript>
                          &nbsp;
                          <input name="submit" type="image" src="img/modules/grid_html_tpl_static_ajax_metallic/page_go.png" alt="go" />
                          </noscript>
                        </td>
                      </tr>
                    </table>
                  </form>
                </td>
              </tr>
            </table>
            {else}
            &nbsp;
            {/if} </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
